/**
 * Created by liuzhen on 2017/3/6.
 */
define(["jqxbuttons","jqxbuttongroup","jqxcheckbox","jqxdropdownlist","jqxinput","jquery_ui",
    "jqxDateTimeInput","mCustomScrollbar"], function () {
    function initEvent(){
        $.get("/project/dialog.html",function (res){
            $("#jqxWidget").append(res);
            $(".checkbox").jqxCheckBox();
            $(".jqxComboBox-s").jqxDropDownList({width:100});
            $(".jqxComboBox-l").jqxDropDownList({width:226});
            $(".jqxInput-text").jqxInput({width:220,height:25});
            //$(".dataPick").jqxDateTimeInput({width:100});
            $.getScript('/project/js/jqwidgets/globalization/globalize.culture.zh-CHS.js', function () {$(".dataPick").jqxDateTimeInput({culture: 'zh-CHS',width:100})})
            $(".defaultButton").jqxButton();
            $(".primaryButton").jqxButton({ template: "primary" });
            $(".successButton").jqxButton({ template: "success" });
            $(".anniu").on("click",function(){
                $(".dialog-wrap").css({top:"0"})
            })
            $(".anniu-close").on("click",function(){
                $(".dialog-wrap").css({top:"-450px"})
            })
        })
    }


    function init() {
        initEvent();
    };
    return init();
})
